<template>
  <div class='login-container'>
    <div>Login</div>
    <router-link to='/login?lala=1'>link</router-link>
  </div>
</template>

<script>
export default {
  name: 'Login',
  data() {
    return {
    };
  },
  mounted() {
  },
  beforeRouteUpdate(to, from, next) {
    // react to route changes...
    // don't forget to call next()
    console.log(from);
    console.log(to);
    next();
  },
  methods: {
    ...mapMutations([
      'stateLogin',
      'stateLogout',
    ]),
    ...mapActions('login', [
      'login',
    ]),
  },
};
</script>

<style lang='scss' />
